package com.xy;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.data.redis.core.StringRedisTemplate;
import org.springframework.test.context.junit4.SpringRunner;

import javax.annotation.Resource;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: xiaoyang
 * @Date: 2022/11/22/8:26
 * @Description:
 */
@RunWith(SpringRunner.class)
@SpringBootTest
public class dome {

    @Resource
    private StringRedisTemplate redisTemplate;
    @Test
    public void name() {
//        Object publicparams = cacheService.get("PUBLICPARAMS");
//        System.err.println(publicparams);
        redisTemplate.opsForValue().set("name", "xiaobai");
        Object name = redisTemplate.opsForValue().get("name");
        System.out.println(name);

    }
}
